home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / KDesktopIface.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-05-22  |  2.6 KB  |  114 lines

  1.  
  2. #ifndef __KDesktopIface_h__
  3. #define __KDesktopIface_h__
  4.  
  5. #include <qstringlist.h>
  6. #include <dcopobject.h>
  7. #include <dcopref.h>
  8.  
  9. class KDesktopIface : virtual public DCOPObject
  10. {
  11.     K_DCOP
  12. public:
  13.  
  14. k_dcop:
  15.     /**
  16.      * @internal
  17.      */
  18.     virtual void runAutoStart() = 0;
  19.  
  20.     /**
  21.      * Re-arrange the desktop icons.
  22.      */
  23.     virtual void rearrangeIcons() = 0;
  24.     /**
  25.      * @deprecated
  26.      */
  27.     void rearrangeIcons( bool ) { rearrangeIcons(); }
  28.     /**
  29.      * Lineup the desktop icons.
  30.      */
  31.     virtual void lineupIcons() = 0;
  32.     /**
  33.      * Select all icons
  34.      */
  35.     virtual void selectAll() = 0;
  36.     /**
  37.      * Unselect all icons
  38.      */
  39.     virtual void unselectAll() = 0;
  40.     /**
  41.      * Refresh all icons
  42.      */
  43.     virtual void refreshIcons() = 0;
  44.     /**
  45.      * @return the urls of selected icons
  46.      */
  47.     virtual QStringList selectedURLs() = 0;
  48.  
  49.     /**
  50.      * Re-read KDesktop's configuration
  51.      */
  52.     virtual void configure() = 0;
  53.     /**
  54.      * Display the "Run Command" dialog (minicli)
  55.      */
  56.     virtual void popupExecuteCommand() = 0;
  57.     /**
  58.      * Display the "Run Command" dialog (minicli) and prefill
  59.      * @since 3.4
  60.      */
  61.     virtual void popupExecuteCommand(const QString& command) = 0;
  62.     /**
  63.      * Get the background dcop interface (KBackgroundIface)
  64.      */
  65.     DCOPRef background() { return DCOPRef( "kdesktop", "KBackgroundIface" ); }
  66.     /**
  67.      * Get the screensaver dcop interface (KScreensaverIface)
  68.      */
  69.     DCOPRef screenSaver() { return DCOPRef( "kdesktop", "KScreensaverIface" ); }
  70.     /**
  71.      * Full refresh
  72.      */
  73.     virtual void refresh() = 0;
  74.     /**
  75.      * Bye bye
  76.      */
  77.     virtual void logout() = 0;
  78.     /**
  79.      * Returns whether KDesktop uses a virtual root.
  80.      */
  81.     virtual bool isVRoot() = 0;
  82.     /**
  83.      * Set whether KDesktop should use a virtual root.
  84.      */
  85.     virtual void setVRoot( bool enable )= 0;
  86.     /**
  87.      * Clears the command history and completion items
  88.      */
  89.     virtual void clearCommandHistory() = 0;
  90.     /**
  91.      * Returns whether icons are enabled on the desktop
  92.      */
  93.     virtual bool isIconsEnabled() = 0;
  94.     /**
  95.      * Disable icons on the desktop.
  96.      */
  97.     virtual void setIconsEnabled( bool enable )= 0;
  98.  
  99.     /**
  100.      * Should be called by any application that wants to tell KDesktop
  101.      * to switch desktops e.g.  the minipager applet on kicker.
  102.      */
  103.     virtual void switchDesktops( int delta ) = 0;
  104.  
  105.     /**
  106.      * slot for kicker; called when the number or size of panels change the available
  107.      * space for desktop icons
  108.      */
  109.     virtual void desktopIconsAreaChanged(const QRect &area, int screen) = 0;
  110. };
  111.  
  112. #endif
  113.  
  114.